import { message } from 'antd'
//复制文本
export const useCopy = (text: string) => {
  let input = document.createElement('input');
  input.value = text;
  document.body.appendChild(input);
  input.select();
  document.execCommand('Copy');
  document.body.removeChild(input);
  message.success(`复制成功, 复制内容为 ${text}`);
}